package com.mt.channel.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mt.channel.entity.ChannelMsgEntity;

public interface ChannelMsgEntityMapper {

    /**
     * 查询渠道商信息列表
     *
     * @param params
     * @return
     */
    List<ChannelMsgEntity> selectList(Map<String, Object> params);

    /**
     * 查询渠道商信息
     *
     * @param params
     * @return
     */
    ChannelMsgEntity selectByPrimaryKey(Map<String, Object> params);

    /**
     * 根据主键修改渠道商信息
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ChannelMsgEntity record);

    /**
     * 根据主键删除渠道商信息，逻辑删除
     *
     * @param channelMsgId
     * @return
     */
    int updateByPrimaryKey(Integer channelMsgId);

    /**
     * 增加渠道商通知
     * 
     * @param record
     * @return
     */
    int insert(ChannelMsgEntity record);

    int insertList(@Param("list") List<ChannelMsgEntity> channelMsgEntityList);

    int updateList(Map<String, Object> param);

    int selectCount(Map<String, Object> param);
}